import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

import Vant from 'vant';
import 'vant/lib/index.css';
import { Tabbar, TabbarItem } from 'vant';
import { Cell, CellGroup } from 'vant';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueClipBoard from 'vue-clipboard2'

Vue.use(VueClipBoard);
Vue.use(ElementUI);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Vant);

Vue.config.productionTip = false
router.beforeEach((to, from, next) => {
// console.log(to.name)
localStorage.setItem('url',to.name)

next();
  
});



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
